package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 学校人数统计
 *
 * @author chenzh
 * @since 2023-03-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_school_rs")
@Schema(name = "EduSchoolRs", title = "学校人数统计", description = "学校人数统计实体类")
public class EduSchoolRs extends Model<EduSchoolRs> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "schoolRsId", title = "地址学校关联id")
    @TableId(value = "school_rs_id", type = IdType.ASSIGN_ID)
    private String schoolRsId;

    @Schema(name = "year", title = "年度")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "areaCode", title = "统筹区")
    @TableField(value = "area_Code")
    private String areaCode;

    @Schema(name = "schoolId", title = "学校id")
    @TableField(value = "school_id")
    private String schoolId;

    @Schema(name = "schoolName", title = "学校名称")
    @TableField(value = "school_name")
    private String schoolName;

    @Schema(name = "schoolCategory", title = "学段")
    @TableField(value = "school_category")
    private String schoolCategory;

    @Schema(name = "schoolNature", title = "学校类别")
    @TableField(value = "school_nature")
    private String schoolNature;

    @Schema(name = "schoolNature", title = "学校性质0.公办 1.民办")
    @TableField(value = "school_Nature_Name")
    private String schoolNatureName;
    @Schema(name = "schoolCategory", title = "学校类别")
    @TableField(value = "School_Category_Name")
    private String schoolCategoryName;

    @Schema(name = "configType", title = "配置类别")
    @TableField(value = "config_type")
    private String configType;

    @Schema(name = "configTypeName", title = "类别名称")
    @TableField(value = "config_type_name")
    private String configTypeName;

    @Schema(name = "longitude", title = "经度")
    @TableField(value = "longitude")
    private BigDecimal longitude;

    @Schema(name = "latitude", title = "纬度")
    @TableField(value = "latitude")
    private BigDecimal latitude;

    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "plaNum", title = "计划人数")
    @TableField(value = "pla_num")
    private Integer plaNum;

    @Schema(name = "sigNum", title = "报名人数")
    @TableField(value = "sig_num")
    private Integer sigNum;

    @Schema(name = "admNum", title = "录取人数")
    @TableField(value = "adm_num")
    private Integer admNum;

    @Override
    public Serializable pkVal() {
        return this.schoolRsId;
    }
}
